<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            width: 300px;
            height: 100px;
            margin: 0 auto;
            border-radius: 20px;
            background: url(paopao.png) no-repeat top left,url(paopao.png) no-repeat bottom right,linear-gradient(rgb(69, 120, 172),rgb(8, 74, 206));;
     
            transition: background-position 3s;
        }
        div:hover{
            background-position: bottom right,top left;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>